

<script src ="/js/common/user_message.js"></script>

<script src ="/js/common/pubu.js"></script>

<script type="text/javascript">
$(function(){
	YOUXIXIU.MAIN.WATERFALL({
				icontainerId : "waterfall",  //内容  ID
				loadingId : "iload",  //               loading ID
				pageId : "",    //分页ID
				url : "/interface/pubu/json_get_pubu_data_by_type.php?tag_id={%$g_show.tag_id%}",
				pscreen : 20,
				uid:"{%$g_show.uid%}",
				type:"{%$g_show.pubu_show_type%}",
				show_type:"{%$g_show.show_type%}",
				show_mblog_tag:"{%$g_show.show_mblog_tag%}",
				show_del:"{%$g_show.show_del%}",
				order:"{%$g_show.order%}",
				col_num:"{%if $g_show.col_num%}{%$g_show.col_num%}{%else%}5{%/if%}",
				pcount:"{%if $g_show.pcount%}{%$g_show.pcount%}{%else%}20{%/if%}",
				start_page:"{%if $g_show.p%}{%$g_show.p%}{%else%}1{%/if%}"
	});	
	
	

});

var container = $("#waterfall");
		container.masonry({
			    itemSelector: ".pin",
				columnWidth: function( containerWidth ) {
				return containerWidth /{%if $g_show.col_num%}{%$g_show.col_num%}{%else%}5{%/if%};
			  }
			  });



</script>



{%include file="tmpl/poup_add_album.html" %}  





